package com.usian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.model.admin.pojos.AdUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdUserMapper extends BaseMapper<AdUser> {
    @Select("select id,name,password,nickname,image,phone,status,email,login_time loginTime,created_time createdTime from ad_user limit #{page},#{size}")
    List<AdUser> findPage(@Param("page") int page,@Param("size") int size);
}
